module.exports = {
    publicPath: './',
    devServer: {
        https: true,
        // port: 8080
    },
    configureWebpack(config) {
        return {
            externals: {
                EBML: 'EBML',
                JSWebrtc: 'JSWebrtc',
            },
            module: {
                rules: [
                    {
                        test: /.js$/,
                        exclude: /node_modules/,
                        loader: 'babel-loader',
                        options: {
                            "presets": [
                                [
                                    "@babel/preset-env",
                                    {
                                        "modules": false
                                    }
                                ]
                            ],
                            "plugins": [
                                [
                                    "component",
                                    {
                                        "libraryName": "element-ui",
                                        "styleLibraryName": "theme-chalk"
                                    }
                                ]
                            ]
                        }
                    },
                ],
            },
        }

    }
}